home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Atari Mega Archive 1
/
Atari Mega Archive - Volume 1.iso
/
language
/
gemfsc18.lzh
/
AESSRC18.LZH
/
AESFUNCS
/
OBJXTUTL.C
< prev
next >
Wrap
C/C++ Source or Header
|
1992-03-07
|
892b
|
28 lines
/**************************************************************************
* OBJXTUTL.C - Functions for dealing with extended object types.
*************************************************************************/
#include "gemfast.h"
/*-------------------------------------------------------------------------
* obj_xtfind - Return index of object with specified extended object type.
*-----------------------------------------------------------------------*/
int obj_xtfind(ptree, parent, xtype)
register OBJECT *ptree;
register int parent;
register char xtype;
{
register int curobj;
curobj = ptree[parent].ob_head;
while(curobj != parent && curobj != -1) {
if (xtype == *(char *)&(ptree[curobj].ob_type)) {
return curobj;
}
curobj = ptree[curobj].ob_next;
}
return -1;
}